package com.zxl.grocery.microservice.auth.server.configuration;

import com.zxl.grocery.microservice.common.handler.GlobalExceptionHandler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 激活定义的全局异常拦截器
 * Created by zxl on 2017/10/13 0013.
 */
@Configuration
public class AuthConfiguration {
    @Bean
    public GlobalExceptionHandler getGlobalExceptionHandler(){
        return new GlobalExceptionHandler();
    }

}
